Async Prediction For Image URL
AutomatR.Nanonets.Activities.AsyncPredictionForImageURL
The "Async Prediction For Image URL" activity in AutomatR is part of the Nanonets OCR activities package, enabling Optical Character Recognition (OCR) predictions on an image using the Nanonets OCR model, with the flexibility to process images from URLs asynchronously. This activity allows you to submit image URLs for processing and retrieve the OCR predictions with a unique ID at a later point in time.
Properties
Name | Description |
---|---|
Input | |
Async | Specifies whether you want to perform asynchronous processing. Enter either (true) or (false). Boolean variables containing the value true or false. |
Image URL | Specifies the URL of the image for which OCR predictions will be made. Only web URLs are allowed. String variables containing the image URL. |
Model ID | The ID of the Nanonets OCR model to use for prediction. String variables containing the model ID. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Async Prediction For Image URL" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Response | Outputs the detailed response generated by the Nanonets OCR model based on the provided image URL. The response includes properties related to predictions for image URLs. Variables of type PredictionForImageUrlsProperties to store the response. |
How to use:
- Drag and drop the "Async Prediction For Image URL" activity onto the workflow.
- Configure the properties by specifying the model ID, image URL, and whether to perform asynchronous processing.
- Optionally, configure the delay.
- Execute the workflow to perform OCR predictions on the specified image URL using the Nanonets OCR model asynchronously.
Example: Consider an example where the "Async Prediction For Image URL" activity is used to perform OCR predictions on an image from the URL "https://example.com/image.jpg" using the Nanonets OCR model:
Async Prediction For Image URL:
Model ID: "your_model_id"
Image URL: "https://example.com/image.jpg"
Async: true
Response: OCRResponse
In this example, the activity submits the image URL for asynchronous processing using the specified Nanonets OCR model. The detailed response generated by the model is stored in the variable "OCRResponse" for further handling in the workflow.